package com.lemobar.pay.model.wxpay.request;

import lombok.Data;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * 微信 关闭订单 请求
 * JSAPI支付 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_3
 * 小程序支付 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_3
 * APP支付 https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_3&index=5
 */
@Data
@Root(name = "xml", strict = false)
public class WxPayCloseRequest {

    @Element(name = "appid")
    private String appid;

    @Element(name = "mch_id")
    private String mchId;

    /**
     * 商户订单号
     */
    @Element(name = "out_trade_no")
    private String outTradeNo;

    @Element(name = "nonce_str")
    private String nonceStr;

    @Element(name = "sign")
    private String sign;
}
